package com.hua.yuan.userlogin.business.impl;
import android.support.annotation.NonNull;
import com.hua.yuan.userlogin.business.IUserLoginBusiness;
import com.hua.yuan.userlogin.business.callback.IUserLoginCallback;
import com.hua.yuan.userlogin.business.dao.impl.UserLoginDaoImpl;
import com.hua.yuan.userlogin.business.dao.impl.UserLogoutDaoImpl;

/**
 * @Author: richsjeson.
 * @Description: TODO()
 * @Date:Created in 2018/12/12 下午11:11.
 * @Modified By:
 */
public class UserLoginBusinessImpl implements IUserLoginBusiness {

    @Override
    public void userLogin(@NonNull final String pUserName, @NonNull final String pPassword, @NonNull final IUserLoginCallback pLoginCallback) {
         new UserLoginDaoImpl().userLogin(pUserName,pPassword,pLoginCallback);
    }

    @Override
    public void logout(@NonNull final IUserLoginCallback pLoginCallback) {
        new UserLogoutDaoImpl().logout(pLoginCallback);
    }
}
